import request from '@/utils/request'

// 查询运输路径信息列表
export function listFlow(query) {
  return request({
    url: '/business/flow/list',
    method: 'get',
    params: query
  })
}

// 查询运输路径信息所有列表
export function listAllFlow(query) {
  return request({
    url: '/business/flow/listAll',
    method: 'get',
    params: query
  })
}

// 查询运输路径信息详细
export function getFlow(id) {
  return request({
    url: '/business/flow/getInfo/' + id,
    method: 'get'
  })
}

// 新增运输路径信息
export function addFlow(data) {
  return request({
    url: '/business/flow/add',
    method: 'post',
    data: data
  })
}

// 修改运输路径信息
export function updateFlow(data) {
  return request({
    url: '/business/flow/edit',
    method: 'post',
    data: data
  })
}

// 删除运输路径信息
export function delFlow(id) {
  return request({
    url: '/business/flow/remove/' + id,
    method: 'get'
  })
}
